home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / Locator.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-03  |  3.3 KB  |  95 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: Locator.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __LOCATOR__
  14. #define __LOCATOR__
  15.  
  16.  
  17. /* Error Codes */
  18. #define toolNotFoundErr 0x0001
  19. #define funcNotFoundErr 0x0002
  20. #define sysStrtMtErr 0x0100  /* can't mount system startup volume */
  21. #define tlBadRecFlag 0x0103  /* StartStop record invalid */
  22. #define tlCantLoad 0x0104  /* A tool cannot be loaded */
  23. #define toolVersionErr 0x0110
  24. #define messNotFoundErr 0x0111
  25. #define messageOvfl 0x0112  /* No message numbers available */
  26. #define nameTooLong 0x0113  /* Message name too long */
  27.  
  28. /* MessageCenter Codes */
  29. #define fileInfoType 0x0001  /* Message type parameter */
  30. #define addMessage 0x0001  /* action parameter */
  31. #define getMessage 0x0002  /* action parameter */
  32. #define deleteMessage 0x0003  /* action parameter */
  33.  
  34. /* TLMountVolume Codes */
  35. #define mvReturn 0x0001  /* like ok for dialogs */
  36. #define mvEscape 0x0002  /* like cancel for dialogs */
  37.  
  38. /* Tool Set Spec Codes */
  39. #define sysTool 0x0000
  40. #define userTool 0x8000
  41. #ifndef theToolsLength  /* ToolTable - default number of ToolSpecs */
  42. #define theToolsLength 0x0010
  43. #endif
  44. struct MessageRec {
  45.    struct MessageRec **messageNext; /*   */
  46.    Word messageType; /*   */
  47.    Word messageData; /*   */
  48.    Str255 fileNames[1]; /*   */
  49. } ;
  50. typedef struct MessageRec MessageRec, *MessageRecPtr, **MessageRecHndl;
  51. struct ToolSpec {
  52.    Word toolNumber; /*   */
  53.    Word minVersion; /*   */
  54. } ;
  55. typedef struct ToolSpec ToolSpec;
  56. struct ToolTable {
  57.    Word toolCount; /*   */
  58.    ToolSpec theTools[theToolsLength]; /*   */
  59. } ;
  60. typedef struct ToolTable ToolTable, *ToolTablePtr;
  61. struct StartStopRecord {
  62.    Word flags;
  63.    Word videoMode;
  64.    Word resFileID;
  65.    Handle dPageHandle;
  66.    Word numTools;
  67.    ToolSpec theTools[theToolsLength]; /*   */
  68. } ;
  69. typedef struct StartStopRecord StartStopRecord, *StartStopRecordPtr;
  70. typedef Long ResponseRecord;
  71. extern pascal Pointer GetFuncPtr() inline(0x0B01,dispatcher);
  72. extern pascal Pointer GetTSPtr() inline(0x0901,dispatcher);
  73. extern pascal Pointer GetWAP() inline(0x0C01,dispatcher);
  74. extern pascal void LoadOneTool() inline(0x0F01,dispatcher);
  75. extern pascal void LoadTools() inline(0x0E01,dispatcher);
  76. extern pascal ResponseRecord MessageByName() inline(0x1701,dispatcher);
  77. extern pascal void MessageCenter() inline(0x1501,dispatcher);
  78. extern pascal void RestoreTextState() inline(0x1401,dispatcher);
  79. extern pascal Handle SaveTextState();
  80. extern pascal void SetDefaultTPT() inline(0x1601,dispatcher);
  81. extern pascal void SetTSPtr() inline(0x0A01,dispatcher);
  82. extern pascal void SetWAP() inline(0x0D01,dispatcher);
  83. extern pascal void ShutDownTools() inline(0x1901,dispatcher);
  84. extern pascal Ref StartUpTools() inline(0x1801,dispatcher);
  85. extern pascal void TLBootInit() inline(0x0101,dispatcher);
  86. extern pascal Word TLMountVolume() inline(0x1101,dispatcher);
  87. extern pascal void TLReset() inline(0x0501,dispatcher);
  88. extern pascal void TLShutDown() inline(0x0301,dispatcher);
  89. extern pascal void TLStartUp() inline(0x0201,dispatcher);
  90. extern pascal Boolean TLStatus() inline(0x0601,dispatcher);
  91. extern pascal Word TLTextMountVolume() inline(0x1201,dispatcher);
  92. extern pascal Word TLVersion() inline(0x0401,dispatcher);
  93. extern pascal void UnloadOneTool() inline(0x1001,dispatcher);
  94. #endif
  95.